//
//  RunLable.h
//  ZSHUDManager
//
//  Created by 字节科技 on 2018/12/22.
//  Copyright © 2018 Byte. All rights reserved.
//  跑马灯效果

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    RunLabelStateNormal,
    RunLabelStateWarning,
    RunLabelStateError,
    RunLabelStateUnKnow
} RunLabelState;

@interface RunLabel : UIView
//字体颜色
@property (nonatomic, strong) UIColor *textColor;

//字体大小
@property (nonatomic, strong) UIFont *font;

//要显示的内容
@property (nonatomic, strong) NSString *text;
/**
 移动的速度[0~1],默认是0.2
 */
@property (nonatomic, assign) CGFloat speed;
-(void)changeText:(NSString *)text State:(RunLabelState)state;
@end

NS_ASSUME_NONNULL_END
